home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / smailsrc.zip / DOC2.ZIP / README.DOS < prev    next >
Text File  |  1990-05-05  |  9KB  |  185 lines

  1.               Random Notes About smail/PC
  2.             smail 2.5, PC Release 1.0 beta
  3.                    Stephen C. Trier
  4.                  April 2, 1990
  5.  
  6. Installing smail
  7. ----------------
  8.  
  9.      These notes are NOT meant to be followed literally.  I will describe a
  10. typical smail/PC installation; you must extend this to fit your own situation.
  11. Please note that smail/PC is fully upward compatible with UUPC or Mush-PC; it
  12. is perfectly possible to use one of the older packages for e-mail while
  13. installing smail/PC.
  14.  
  15.     1.  Make the directories d:\uucp, d:\uucp\bin, d:\uucp\lib, d:\uucp\etc,
  16.     d:\uucp\mail, d:\uucp\spool, d:\uucp\src, and d:\uucp\homes.
  17.     2.  Make a home directory for each user within d:\uucp\homes.
  18.     3.  Unpack the archive files into the proper directories.
  19.     4.  Copy the file d:\uucp\bin\smail.exe to d:\uucp\bin\rmail.exe.
  20.     5.  Change directories into d:\uucp\lib; copy the USER.RC file into each
  21.     user's home directory, naming it "UUPC.RC".  Rename the SYSTEM.RC file
  22.     UUPC.RC, if you wish.
  23.     6.  Edit the SYSTEM.RC file to reflect your local setup, including the
  24.     directory names you may have used instead of the ones given.
  25.     7.  Edit all of the user .RC files to reflect their names, etc.
  26.     8.  Edit the d:\uucp\etc\passwd file to reflect your local users:
  27.         The first field is the users' login name (less than eight
  28.         characters and all lowercase, please.)
  29.         The second field is for a password for the user.  This field is not
  30.         used by smail.
  31.         The third field is the user's group ID.  This is not used by smail.
  32.         The fourth field is the user's user ID.  This number must be
  33.         different for each user in the file.
  34.         The fifth field is the user's full name.
  35.         The sixth field is the path to the user's home directory.
  36.         The last field is the user's shell.  This is not used by smail.
  37.     The passwd file will be used to determine if incoming mail is to a
  38.     valid username, to determine a user's full name if needed, and to
  39.     locate a user's forward file in his home directory.
  40.     9.  Install Mush as per the instructions included with it.  Note, however,
  41.     that the Mush uuio.exe and mailer.exe programs are not needed and are
  42.     incompatible with smail.  Also note that the "set sendmail" line in
  43.     the system Mush.RC file should be set to 'set sendmail="smail"'.
  44.    10.  Test the system by sending mail to yourself.  Then, try sending mail
  45.     to yourself via your mail neighbor.  For me, that would be (from
  46.     seldon) "mush skybridge!seldon!sct".  If that works, all should be
  47.     well.
  48.  
  49.  
  50. UUPC.RC Parameters
  51. ------------------
  52.  
  53.      smail expects to read the following fields from the .rc files specified
  54. in $UUPCUSRRC and $UUPCSYSRC:
  55.     NodeName        Local host name
  56.             Default: host
  57.     Domain          Fully qualified local name, e.g. "host.domain"
  58.             Default: host.domain
  59.     MailServ        Nearest smart host
  60.             Default: looks up smart-host in path table
  61.     Mailbox         User ID of the current user
  62.             Default: noone
  63.     Aliases         Path of the system mail alias file
  64.             Default: /usr/lib/aliases
  65.     Fullnames       Path of the system fullname table
  66.             Default: /usr/lib/fullnames
  67.     Paths           Path to the mail path table
  68.             Default: /usr/lib/uucp/paths
  69.     SmailLog        Path to the smail logfile
  70.             Default: /usr/spool/uucp/mail.log
  71.     Passwd          Path to the password file
  72.             Default: Specified in environment variable PASSWD
  73.             Last resort: /etc/passwd
  74.     LocalMail       Name of local mail delivery program
  75.             Default: lmail
  76.  
  77.      I recommend that you establish more appropriate values for most of these
  78. variables.  The defaults are provided for those people who feel that they must
  79. configure their computers to look as much like a UNIX system as possible.
  80. Besides, these are the defaults smail uses when it is fresh out of the box on a
  81. UNIX system.
  82.  
  83.      Please note that many of these parameters should be specified in the
  84. system RC file, while others are appropriate for the user files.  Sample RC
  85. files have been provided, under the names SYSTEM.RC and USER.RC.
  86.  
  87.  
  88. The Files Used By smail/PC
  89. --------------------------
  90.  
  91.      smail/PC requires the existence of several files to function properly.
  92. These are all described in the *.man files included with the documentation, so
  93. only a short discussion will follow.  Note that even if you choose not to use
  94. one of the features, an empty file of the appropriate name _must_ exist, or
  95. else smail will not function.
  96.  
  97.      The paths file is perhaps the most significant file used by smail/PC.
  98. This file contains the path information used by smail to automatically route
  99. your mail to its destination.  Several methods of generating this file exist;
  100. you should choose the one appropriate for your situation.
  101.  
  102.     The simplest method is to generate the path table by hand.  To do this, use
  103. must use a text editor capable of creating tabs.  Make a table of two fields
  104. per line, separated by a tab.  The first field should contain the name of a
  105. host or domain, and the second should contain the path to follow to get there.
  106. At the end of the path, add a "!%s".  For example, my entry for the computer
  107. "cwphysbb" is:
  108.  
  109.     cwphysbb    skybridge!cwphysbb.phys.cwru.edu!%s
  110.  
  111.      A better method for creating the database is to use a program that can
  112. take the UUCP maps distributed on Usenet and convert them into an
  113. smail-compatible format.  Unfortunately, such programs only run on UNIX systems
  114. at the moment, so you will need to find a friendly site to make the maps for
  115. you.  It is usually quite easy for them to run off a copy of the maps at the
  116. time they do their own.  By doing this, you can build a path database of all
  117. the sites you might need.  Your geographical area might be a good section of
  118. the maps to use, or you could use the full map for automatic mail routing
  119. anywhere in the world.
  120.  
  121.      After you create the path table by either method, be _sure_ to sort it.
  122. smail uses a binary search technique to find each table entry, and the table
  123. must be sorted for this to work correctly.  If your table is more than 64K
  124. long, you will have to abandon the MS-DOS sort command to QSORT or another
  125. replacement, or you could have the site that generates your maps sort the file
  126. for you before sending it.  For more information on the paths file, see the
  127. manual page paths.man.
  128.  
  129.      Another important file for smail is the aliases file.  This file allows
  130. you to create "aliases" for users on your system or elsewhere.  This allows you
  131. to forward mail to other locations for users, to create e-mail "mailing lists"
  132. where a single message to the list alias sends copies to every member, and
  133. permits other flexible uses.  As a minimum, your aliases file should contain
  134. definitions for "postmaster" and "uucp".  "root" is also a good idea.  These
  135. three addresses are methods by which outside users will try to contact the
  136. administrator of your machine if needed, so they should point to a valid
  137. address (probably yours).  See the file aliases.man for more information.
  138.  
  139.     The full-name database, fullnames, is similar to the alias file but is for
  140. a different purpose.  In it, you may place the full names of all of your users,
  141. so that an outsider can say, "I don't remember his ID, but I do remember his
  142. name.  I'll try that," and the mail will get through.  Like the paths database,
  143. this file needs to be sorted ahead of time.  You can generate it with the help
  144. of the nptx program, which is used to create all the sensible permutations of a
  145. person's name and initials.  See nptx.man for more information.
  146.  
  147.  
  148. Notes About The smail Source
  149. ----------------------------
  150.  
  151.      The UNIX smail source requires several add-on modules for successful
  152. compilation.  I have included a minimal implementation of popen, pclose, and
  153. the pwd.h password file library.  The password file functions reside in the
  154. directory src/passwd.  They must be compiled independently into a library file
  155. before smail will compile correctly.
  156.  
  157.      smail/PC was originally compiled with Turbo C 2.0 Professional.  It should
  158. be reasonably portable to other compilers, but no effort has been made to test
  159. it on those others.  I am interested in any portability modifications you make.
  160.  
  161.  
  162. A Word About Memory Usage
  163. -------------------------
  164.  
  165.      Smail is a bit memory-hungry, compared to plain UUPC.  In normal use, it
  166. will not require more than about 180K to function, but if it must return some
  167. mail to the sender, memory consumption will increase to roughly 260K.  I
  168. consider this a bug, but a fix will be very difficult.  For now, watch your
  169. memory usage, especially if you are using Mush 6.5 as your mail user agent.
  170. With Mush, you may need to use the overlay version if you have less than
  171. approximately 475K of free memory.
  172.  
  173.      If you would like to check (and I highly recommend doing so), use the
  174. uuxdummy.exe program provided in this package.  First, rename uux.exe to
  175. uuxreal.exe.  Then copy uuxdummy.exe to uux.exe.  Run Mush and send mail to a
  176. nonexistent user on your system, such as johndoe.  If you get mail back
  177. reporting the problem, you probably have sufficient memory free.  If the mail
  178. fails silently, with no error message, it is time to either switch to a smaller
  179. version of Mush or to unload a few TSR programs.
  180.  
  181.      Remember to restore the filenames of uux.exe and uuxdummy.exe, or else
  182. _ALL_ outbound mail will fail.
  183.  
  184.  
  185.